function FirstClassDecorator(params: any) {
  console.log("params--", params);
  return function (targetClass: any) {
    console.log("targetClass.name--", targetClass.name);
    let targetClassObj = new targetClass();
    targetClassObj.buy();
  };
}

@FirstClassDecorator("我是用来修饰的参数")
class CustomerService {
  name: string = "下单";
  constructor() {}
  buy() {
    console.log(this.name + "购买");
  }
  placeOrder() {
    //下单
    console.log(this.name + "下单购买");
  }
}

export {};
